package pers.vic.upload.login.model;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 描述:t_stl_S_user
 * SELECT a.id, a.ENABLE_FLAG AS enabled, a.USER_NAME username, a.NAME , a.PASSWORD  FROM t_stl_S_user a WHERE a.USER_NAME = 'admin';
 * @author Vic.xu
 * @date 2022-07-06 11:01
 */
public class User {

    private String id;

    private String username;

    private String name;

    private boolean enabled;

    /**
     * 默认身份部门id
     */
    private String fkOrganizationId;

    /**
     * 默认身份法人id
     */
    private String fkOrgCompanyId;

    @JsonIgnore
    private String password;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username == null ? "none" : username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFkOrganizationId() {
        return fkOrganizationId;
    }

    public void setFkOrganizationId(String fkOrganizationId) {
        this.fkOrganizationId = fkOrganizationId;
    }

    public String getFkOrgCompanyId() {
        return fkOrgCompanyId;
    }

    public void setFkOrgCompanyId(String fkOrgCompanyId) {
        this.fkOrgCompanyId = fkOrgCompanyId;
    }
}
